For years, type 2 diabetes was thought to be a lifelong condition—once diagnosed, people were told that they would have to live with it forever.…